package com.anti_poverty_detection_system.springboot.service.dto;

import java.util.List;

public class CascaderOption {
    private String label;  // 选项显示的文本
    private String value;  // 选项对应的值
    private List<CascaderOption> children;  // 子选项集合，用于实现级联选择器的级联效果

    // 构造方法和getter、setter方法
    public CascaderOption(String label, String value) {
        this.label = label;
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public List<CascaderOption> getChildren() {
        return children;
    }

    public void setChildren(List<CascaderOption> children) {
        this.children = children;
    }
}
